package com.yuntai.pms.model.entity.system;

import java.io.Serializable;
import java.util.Date;
import com.alibaba.fastjson.JSON;

/**
 * @ClassName: EmailVerify
 * @Description: 邮箱验证
 * @author caijg@hsyuntai.com
 * @date 2017年9月22日 下午4:21:48
 */
public class EmailVerify implements Serializable{
	
	private static final long serialVersionUID = 4239048384291414578L;

	private Long id;
	
	private String email;
	
	private String verifyCode;
	
	private Date sendTime;
	
	private Long validTime;
	
	private Date createTime;

	private Date updateTime;
	
	/**
	 * 判断发送验证码的类型
	 * REGISTER_MSG  注册
	 * PASS_FINDBACK 密码找回
	 * PASS_ALTER  修改密码验证码
	 */
	private String type;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getVerifyCode() {
		return verifyCode;
	}

	public void setVerifyCode(String verifyCode) {
		this.verifyCode = verifyCode;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public Long getValidTime() {
		return validTime;
	}

	public void setValidTime(Long validTime) {
		this.validTime = validTime;
	}
	
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
